﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.BackStage.ConsumeChats
{
    /// <summary>
    /// ChatContent
    /// </summary>
    [Table("ChatContent")]
    public class ChatContent
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public String CreatorId { get; set; }


        /// <summary>
        /// 是否删除
        /// </summary>
        public Boolean? Deleted { get; set; }


        /// <summary>
        /// 消息类型
        /// </summary>
        public Int32 MessageType { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public String MessageContent { get; set; }

        /// <summary>
        /// 房间Id
        /// </summary>
        public String RoomId { get; set; }

        /// <summary>
        /// 已读状态
        /// </summary>
        public Boolean ReadState { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 发送人Id
        /// </summary>
        public String SenderId { get; set; }

        /// <summary>
        /// 接收人Id
        /// </summary>
        public String ReceiverId { get; set; }

        /// <summary>
        /// 发送人类型(0.用户,1.客服)
        /// </summary>
        public Int32 SenderType { get; set; }

        /// <summary>
        /// 消息名称
        /// </summary>
        public String MassageName { get; set; }

        /// <summary>
        /// 消息大小
        /// </summary>
        public String MessageSize { get; set; }

        /// <summary>
        /// 语音状态
        /// </summary>
        public Boolean? VState { get; set; }

    }
}